﻿<navigation:Page 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
	x:Class="HotSpot.Silverlight.HSAccommodation" 
	Title="HotSpot - Hotels">

    <Grid x:Name="LayoutRoot">
        <Border Background="#4d4139" CornerRadius="20" Margin="0,20,0,0" Opacity="0.7">

            <ListBox x:Name="HotelList" Background="Transparent" Margin="15" BorderBrush="{x:Null}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Margin="4">
                            <Image Margin="5" ></Image>
                            <StackPanel Orientation="Vertical" Margin="4" MinWidth="210">
                                <TextBlock Text="{Binding Name}" Style="{StaticResource HotelListName}"></TextBlock>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Stars: " Style="{StaticResource HotelListStarLabel}"></TextBlock>
                                    <TextBlock Text="{Binding Stars}" Style="{StaticResource HotelListStars}"></TextBlock>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" Margin="4" MinWidth="200">
                                <TextBlock Text="{Binding Address.Street}" Style="{StaticResource HotelListData}"></TextBlock>
                                <TextBlock Text="{Binding Address.Town.Name}" Style="{StaticResource HotelListData}"></TextBlock>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" Margin="4" MinWidth="140">                                
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Rooms: " Style="{StaticResource HotelListStarLabel}"></TextBlock>
                                    <TextBlock Text="{Binding Rooms}" Style="{StaticResource HotelListStars}"></TextBlock>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" Margin="4" >
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Email: " FontSize="12" Style="{StaticResource HotelListStarLabel}"></TextBlock>
                                    <TextBlock Text="{Binding Address.Email}" FontSize="12" Style="{StaticResource HotelListData}"></TextBlock>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Telephone: " FontSize="12" Style="{StaticResource HotelListStarLabel}"></TextBlock>
                                    <TextBlock Text="{Binding Address.Telephone}" FontSize="12" Style="{StaticResource HotelListData}"></TextBlock>
                                </StackPanel>                            
                              
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>

                </ListBox.ItemTemplate>
            </ListBox>

        </Border>

    </Grid>
</navigation:Page>